package org.example.demo.controller;

import org.example.demo.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zss
 * @date 2021/10/15 16:02
 * @Email:451682479@qq.com
 */
@RequestMapping("/test")
@RestController
public class TestController {

    @Autowired
    private ITestService testService;

    @GetMapping("/test1")
    public String test1() {

        String s = testService.serviceMethod1();

        return "Controller test1" + s;
    }
}
